import request from '@/utils/request'

//消息
export function getMessageList(data,params) {
  return request({
    url: '/storage/category/msg',
    method: 'post',
    data:data,
    params:params
  })
}

//消息更新为已读
export function setMessageRead(data) {
  return request({
    url: `/storage/category/updateMsgStatus?id=${data.id}` ,
    method: 'post',
    data:{},
  })
}

//全部已读
export function setAllMessageRead(data,params) {
  return request({
    url: '/storage/category/allRead',
    method: 'post',
    data:data,
    params:params
  })
}
